package com.bsoft.broadcasttest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.socks.library.KLog;

/**
 * Created by 泅渡者
 * Created on 2017/9/26.
 */

public class OrderOBroadcast2 extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {

        Bundle bundle=intent.getExtras();
        KLog.d("我收到消息"+bundle.get("data"));
        bundle.putString("warning", "姐姐快起床");
        setResultExtras(bundle);
        //切断广播
//      abortBroadcast();
    }
}
